<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="bespeakselect" method="post">
	<input type="text" name="bname">
	<input type="submit" value="查询">
</form>
<a href="" >新增预约</a>
<h1>${ts }</h1>
<table align="center" border="1px" cellpadding="0" cellspacing="0">

	<tr align="center" >
		
		<td width="150px">姓名</td>
		<td width="250px">来访时间</td>
		<td width="150px">访问人部门</td>
		<td width="150px">访问人</td>
		<td width="150px">来访目的</td>
		
	</tr>
	<c:forEach items="${bespeaklist }" var="bespeaklist">
	<tr align="center" height="40px">
		
		<td>${bespeaklist.bname }</td>
		<td width="160px"><fmt:formatDate value="${bespeaklist.btime}" type="date"/></td>
		<td>${bespeaklist.sjob}</td>
		<td>${bespeaklist.name}</td>
		<td>${bespeaklist.bgoal}</td>
		<td width="100px">
		<a href="update?bid=${bespeaklist.bid}">修改</a>
		<a href="delete?bid=${bespeaklist.bid}" target="_top">删除</a>
		</td>
	</tr>
	</c:forEach>
</table>
共${zs}页<a href="bespeakpage2?ys=${ys}&ys1=${ys1}">上一页</a>第${ys1}页  <a href="bespeakpage3?ys1=${ys1}&ys=${ys}">下一页</a>
</body>
</html>